package cn.stylefeng.guns.workflow.service;

import cn.stylefeng.guns.workflow.modeler.ProcessDefinition;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
* @author: lujie
* @create: 2020/10/29
* @description:  流程定义Service
**/
public interface ProcessDefinitionService {

    /**
     * 查询流程定义分页列表
     * @param processDefinition
     * @return
     */
    Page<ProcessDefinition>  pageList(ProcessDefinition processDefinition);

    /**
     * 激活或挂起流程
     * @param id
     * @param suspendState
     */
    void suspendOrActiveApply(String id, String suspendState);

    /**
     * 删除流程定义
     * @param ids
     */
    int deleteProcessDeploymentByIds(String ids);
}
